var addr=window.sessionStorage.getItem('url');
var myXmlHttpRequest;
var username=window.sessionStorage.getItem('username');
function exit(){
	window.sessionStorage.clear();
	window.location.href="IndexPage.html";
}
function getImg(){
	url=addr+"loadWantedPicById.htm";
	var myXmlHttpRequest = new XMLHttpRequest();
	myXmlHttpRequest.open("get",url,true);
	myXmlHttpRequest.responseType = "blob";
	myXmlHttpRequest.onload = function() {
        if (this.status == 200) {
        	var blob=new Blob();
			blob = this.response;
			var img=document.getElementById('getpic');
			img.onload=function(e){
				window.URL.revokeObjectURL(img.src);
			};
			img.src=window.URL.createObjectURL(blob);
		}

	}
	myXmlHttpRequest.send(null);
}